package com.etc.zzsys.entiy;

/**
 * 自定义实体类 Qustion
 * @author knowno
 *
 */
public class Question {

	private int qid;
	private String title;
	private String content;
	private String qdate;// 时间处理暂时用string
	// private int userId;
	private String userName;// 此时的Question的bean和表结构不一致

	public int getQid() {
		return qid;
	}

	public void setQid(int qid) {
		this.qid = qid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getQdate() {
		return qdate;
	}

	public void setQdate(String qdate) {
		this.qdate = qdate;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Question(int qid, String title, String content, String qdate, String userName) {
		super();
		this.qid = qid;
		this.title = title;
		this.content = content;
		this.qdate = qdate;
		this.userName = userName;
	}

	public Question() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "Question [qid=" + qid + ", title=" + title + ", content=" + content + ", qdate=" + qdate + ", userName="
				+ userName + "]";
	}

}
